home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tcoop.arc / TCOOP2.ARC / KEYBRD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-26  |  2.3 KB  |  70 lines

  1. // keyboard driver: keybrd.h
  2.  
  3. #ifndef H_KEYBRD
  4. #define H_KEYBRD
  5.  
  6. #include <bios.h>
  7.  
  8. // Shift Status Masks
  9.  
  10. const unsigned InsertOn       = 0x80;
  11. const unsigned CapsLkOn       = 0x40;
  12. const unsigned NumLkOn        = 0x20;
  13. const unsigned ScrollLkOn     = 0x10;
  14. const unsigned AltPressed     = 0x08;
  15. const unsigned CtrlPressed    = 0x04;
  16. const unsigned LShiftPressed  = 0x02;
  17. const unsigned RShiftPressed  = 0x01;
  18.  
  19. // Common scan-ascii codes
  20.  
  21. const unsigned CtrlC        = 0x2e03;   
  22. const unsigned CtrlH        = 0x2308;
  23. const unsigned CtrlI        = 0x1709;   
  24. const unsigned CtrlL        = 0x260c;
  25. const unsigned CtrlK        = 0x250b;   
  26. const unsigned CtrlJ        = 0x240a;
  27. const unsigned CtrlU        = 0x1615;   
  28. const unsigned CtrlR        = 0x1312;
  29. const unsigned CrKey        = 0x1c0d;   
  30. const unsigned CtrlCrKey    = 0x1c0a;
  31. const unsigned UpKey        = 0x4800;   
  32. const unsigned DownKey      = 0x5000;
  33. const unsigned LeftKey      = 0x4b00;   
  34. const unsigned RightKey     = 0x4d00;
  35. const unsigned ShiftLeft    = 0x4b34;   
  36. const unsigned ShiftRight   = 0x4d36;
  37. const unsigned DelKey       = 0x5300;   
  38. const unsigned InsKey       = 0x5200;
  39. const unsigned BsKey        = 0x0e08;   
  40. const unsigned SpaceBar     = 0x3920;
  41. const unsigned PgUpKey      = 0x4900;   
  42. const unsigned PgDnKey      = 0x5100;
  43. const unsigned CtrlPgUp     = 0x8400;   
  44. const unsigned CtrlPgDn     = 0x7600;
  45. const unsigned ShiftUpKey   = 0x4838;  
  46. const unsigned ShiftDnKey   = 0x5032;
  47. const unsigned ShiftPgUpKey = 0x4939;  
  48. const unsigned ShiftPgDnKey = 0x5133;
  49. const unsigned HomeKey      = 0x4700;   
  50. const unsigned EndKey       = 0x4f00;
  51. const unsigned EscKey       = 0x011b;   
  52. const unsigned TabKey       = 0x0f09;
  53. const unsigned ShiftTabKey  = 0x0f00;   
  54. const unsigned AltD         = 0x2000;
  55. const unsigned AltE         = 0x1200;   
  56. const unsigned AltI         = 0x1700;
  57. const unsigned AltN         = 0x3100;   
  58. const unsigned AltR         = 0x1300;
  59. const unsigned AltS         = 0x1f00;   
  60. const unsigned AltT         = 0x1400;
  61. const unsigned AltX         = 0x2d00;   
  62. const unsigned F6Key        = 0x4000;
  63. const unsigned F8Key        = 0x4200;   
  64. const unsigned F10Key       = 0x4400;
  65.  
  66. extern unsigned KeyEvent(void);
  67. extern int IsShiftArrow(unsigned k);
  68.  
  69. #endif
  70.